<?php

namespace App\Http\Controllers\Home;

use App\Http\Controllers\Controller;
use App\Model\ArticleModel;
use Illuminate\Http\Request;

class CateController extends Controller
{
    //
    public function index($id) {

        $articleModel = new ArticleModel;
        $articles = $articleModel->getArtByCate($id);

        return view('home.article.index',['articles' => $articles]);
    }
}
